# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=plasma-pass
pkgver=1.2.1
pkgrel=1
arch=(loong64 x86_64)
pkgdesc='Plasma applet for the Pass password manager'
url='https://www.dvratil.cz/2018/05/plasma-pass/'
license=(GPL)
depends=(plasma-workspace oath-toolkit qgpgme)
makedepends=(extra-cmake-modules)
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('120bf361c3d76d2220408f5f78457b03b5ae95e4859837c6280b8aaf79923e74'
            'SKIP')
validpgpkeys=('0ABDFA55A4E6BEA99A83EA974D69557AECB13683') # Daniel Vrátil <dvratil@kde.org>

build() {
  cmake -B build -S $pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
